

package blocnotas;

import java.awt.Button;
import java.awt.Checkbox;
import java.awt.Choice;
import java.awt.Color;
import java.awt.Frame;
import java.awt.GridLayout;
import java.awt.Label;
import java.awt.Menu;
import java.awt.MenuBar;
import java.awt.MenuItem;
import java.awt.Panel;
import java.awt.TextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;


public class Main {

    
    public static void main(String[] args) {
        Frame f= new Frame();
        Panel p=new Panel();
        Panel p1=new Panel();
        Panel p2=new Panel();
        Panel p3=new Panel();
        Panel p4=new Panel();
        Panel p5=new Panel();
        Panel p6=new Panel();
        Panel p7=new Panel();
        Panel p8=new Panel();
        Panel p9=new Panel();
        f.setLayout(new GridLayout(10, 1));
        f.add(p);
        f.add(p1);
        f.add(p2);
        f.add(p3);
        f.add(p4);
        f.add(p5);
        f.add(p6);
        f.add(p7);
        f.add(p8);
        f.add(p9);
        Label l=new Label("Bienvenido A Skype");
        Label l1=new Label("Nombre de usuario");
        Label l2=new Label("No tienes nombre de usuario de Skype?");
        Label l3=new Label("Contraseña");
        Label l4=new Label("Olvidaste la contraseña");

MenuBar m=new MenuBar();
Menu m1=new Menu("Skype");
Menu m2=new Menu("Herramientas");
Menu m3=new Menu("Ayuda");
MenuItem a=new MenuItem("cerrar");
MenuItem b=new MenuItem("Cambiar idioma");
MenuItem b1=new MenuItem("Opciones de Conexion");

MenuItem b2=new MenuItem("Accesibilidad");
f.setMenuBar(m);
MenuItem j=new MenuItem("Obtener ayuda:Respuestas y Asistencias");
MenuItem j1=new MenuItem("Comprobar Actualizacion");
MenuItem j2=new MenuItem("Acerca de Skype");
m.add(m1);
m.add(m2);
m.add(m3);
m1.add(a);
m2.add(b);
m2.add(b1);
m2.add(b2);
m3.add(j);
m3.add(j1);
m3.add(j2);
TextField tf=new TextField("                                                ");
TextField tf1=new TextField("                                                ");

p.add(l);
p2.add(l1);
p3.add(tf);
p4.add(l2);
p5.add(tf1);
p5.add(l3);
p6.add(l4);
Button b3=new Button("iniciar secion");
p7.add(b3);
p8.add(new Checkbox("iniciar automaticamente"));
p9.add(new Checkbox("iniciar skype al iniciar el equipo"));
f.setMenuBar(m);
b2.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
               Main m=new Main();
               m.ventana4();
            }
        });
a.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
           System.exit(0);
            }
        });

f.addWindowListener(new WindowListener() {

            public void windowOpened(WindowEvent e) {

            }

            public void windowClosing(WindowEvent e) {
            System.exit(0);
            }

            public void windowClosed(WindowEvent e) {

            }

            public void windowIconified(WindowEvent e) {

            }

            public void windowDeiconified(WindowEvent e) {

            }

            public void windowActivated(WindowEvent e) {
            }

            public void windowDeactivated(WindowEvent e) {

            }
        });
        b3.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
           Main m=new Main();
            m.ventana1();
            }
        });
        j2.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
              Main m=new Main();
              m.ventana2();
            }
        });
b.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
           Main m=new Main();
           m.ventana3();
            }
        });
        f.setSize(500, 400);
       

        f.setVisible(true);

    }
public void ventana1(){
Frame f=new Frame("Iniciar secion");
Label l=new Label("Bienvenidos a SKYPE ");
f.add(l);
f.setBackground(Color.BLUE);
f.addWindowListener(new WindowListener() {

            public void windowOpened(WindowEvent e) {

            }

            public void windowClosing(WindowEvent e) {
              System.exit(0);
            }

            public void windowClosed(WindowEvent e) {

            }

            public void windowIconified(WindowEvent e) {

            }

            public void windowDeiconified(WindowEvent e) {

            }

            public void windowActivated(WindowEvent e) {

            }

            public void windowDeactivated(WindowEvent e) {

            }
        });

f.setSize(200, 300);
f.setVisible(true);
}
public void ventana2(){
Frame f=new Frame("Ayuda");
Label l=new Label("bienvendio ala gestor de ayuda del skype");
Label l2=new Label("si usted tiene uno de estos problemas");
Label l3=new Label("no se conecta");
Label l4=new Label("olvidaste contraseña");
Label l5=new Label("Entra a www.skype.com.mx");
Panel p=new Panel();
Panel p2=new Panel();
Panel p3=new Panel();
Panel p4=new Panel();
Panel p5=new Panel();
f.setLayout(new GridLayout(5, 1));
f.add(p);
f.add(p2);
f.add(p3);
f.add(p4);
f.add(p5);
p.add(l);
p2.add(l2);
p3.add(l3);
p4.add(l4);
p5.add(l5);
f.addWindowListener(new WindowListener() {

            public void windowOpened(WindowEvent e) {
               
            }

            public void windowClosing(WindowEvent e) {
System.exit(0);
            }

            public void windowClosed(WindowEvent e) {

            }

            public void windowIconified(WindowEvent e) {

            }

            public void windowDeiconified(WindowEvent e) {

            }

            public void windowActivated(WindowEvent e) {

            }

            public void windowDeactivated(WindowEvent e) {

            }
        });
        f.setBackground(Color.blue);
f.setSize(300, 300);
f.setVisible(true);

}
public void ventana3(){
Frame f=new Frame("Idiomas del programa");
Panel p=new Panel();
Panel p2=new Panel();
f.setLayout(new GridLayout(2, 1));
p.add(new Checkbox("ingles"));
p2.add(new Checkbox("catellano"));
p2.add(new Checkbox("español"));
f.add(p);
f.add(p2);
f.addWindowListener(new WindowListener() {

            public void windowOpened(WindowEvent e) {
               
            }

            public void windowClosing(WindowEvent e) {
System.exit(0);
            }

            public void windowClosed(WindowEvent e) {

            }

            public void windowIconified(WindowEvent e) {

            }

            public void windowDeiconified(WindowEvent e) {

            }

            public void windowActivated(WindowEvent e) {

            }

            public void windowDeactivated(WindowEvent e) {

            }
        });

f.setBackground(Color.pink);
f.setSize(400, 400);
f.setVisible(true);
}
public void ventana4(){
Frame f=new Frame("accesibilidad");
Panel p=new Panel();
Panel p2=new Panel();
f.setLayout(new GridLayout(2, 1));
p.add(new Checkbox("Navegacion por teclado extendido"));
p2.add(new Checkbox("Modo lector de pantalla"));
f.add(p);
f.add(p2);
f.addWindowListener(new WindowListener() {

            public void windowOpened(WindowEvent e) {
               
            }

            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }

            public void windowClosed(WindowEvent e) {
             
            }

            public void windowIconified(WindowEvent e) {
               
            }

            public void windowDeiconified(WindowEvent e) {
              
            }

            public void windowActivated(WindowEvent e) {
               
            }

            public void windowDeactivated(WindowEvent e) {
               
            }
        });
f.setBackground(Color.CYAN);
f.setSize(300, 400);
f.setVisible(true);
}
}
